﻿
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using Model;
using MsDAL;
using System.ComponentModel;
using Components;

namespace ServiceHelper
{
   [DataObjectAttribute]
   public  partial  class Bas0a00Manager:Bas0a00Base
    {
		private static Bas0a00Manager _entity;
		
        public static Bas0a00Manager Entity
        {
            get
            {
                if (_entity == null)
                    _entity = new Bas0a00Manager();
                return _entity;
            }
        }
		
		#region 个人代码
        public string SaveData(Hashtable tb, string action, string usercode)
        {
            List<SqlApp> lst = new List<SqlApp>();

            Bas0a00 model = new Bas0a00();
            CommonUtil.GetInstance.CopyProperties(tb, model);

            model.Muser = Context.GetAppByUserCode(usercode);

            if ("A" == action)
            {
                lst.Add(this.Add(model));
            }

            return CommonManager.Entity.SaveData(lst);
        }

		#endregion
    }
}



